import request from '@/utils/request'

// 记录台账列表
export function fetchList(query) {
  return request({
    url: '/preserve/api/preservePlan/query/page/record',
    method: 'get',
    params: query
  })
}
// 记录台账记录详情列表
export function fetchList1(query) {
  return request({
    url: '/preserve/api/preservePlanItem/query/list',
    method: 'get',
    params: query
  })
}
// 记录台账记录详情单条数据列表
export function fetchList2(query) {
  return request({
    url: '/preserve/api/preserveTaskItem/query/page/detail',
    method: 'get',
    params: query
  })
}
// 详情最内层确认合格
export function makeSurePreserveItems(query) {
  return request({
    url: '/preserve/api/preserveTaskItem/confirm',
    method: 'post',
    data: query
  })
}
// 根据id查询planId
export function fetchDetailById(query) {
  return request({
    url: '/preserve/api/preservePlan/query/toServiceId/' + query,
    method: 'get'
    // params: { planItemId: query }
  })
}
